<?php

namespace Modules\Car\Http\Requests\Api;

use Illuminate\Foundation\Http\FormRequest;

class PlaceRequest extends FormRequest
{
    public function rules()
    {
        return [
            //'openid' => 'required',
//            'source' => 'required',
            'wx_name' => 'required',
            'phone' => 'required',
            'position' => 'required',
            'drink' => 'required',
            'last_lease_price' => 'sometimes|required|min:0',
        ];
    }
    public function messages()
    {
        return [
            'required'=>":attribute 必填项"
        ];
        //return parent::messages(); // TODO: Change the autogenerated stub
    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }
}
